const BaseFrameSet = () => import('__LAYOUTS__/base_frame_set/BaseFrameSet.vue')
// import BaseFrameSet from '__LAYOUTS__/base_frame_set/BaseFrameSet.vue'
const MineIndex = () => import('__VIEWS__/mine/MineIndex.vue')
// import MineIndex from '__VIEWS__/mine/MineIndex.vue'
const PreviewUser = () => import('__VIEWS__/mine/PreviewUser.vue')
// import PreviewUser from '__VIEWS__/mine/PreviewUser.vue'
const ChangeInfo = () => import('__VIEWS__/mine/ChangeInfo.vue')
// import ChangeInfo from '__VIEWS__/mine/ChangeInfo.vue'
const ChangePassowrd = () => import('__VIEWS__/mine/ChangePassowrd.vue')
// import ChangePassowrd from '__VIEWS__/mine/ChangePassowrd.vue'
const MineArticle = () => import('__VIEWS__/mine/MineArticle.vue')
// import MineArticle from '__VIEWS__/mine/MineArticle.vue'
const MineSystemMessage = () => import('__VIEWS__/mine/MineSystemMessage.vue')
// import MineSystemMessage from '__VIEWS__/mine/MineSystemMessage.vue'
const MineCollection = () => import('__VIEWS__/mine/MineCollection.vue')
// import MineCollection from '__VIEWS__/mine/MineCollection.vue'

// 有router-view 的组件都不能用 functional 函数式
const MineFrameSetComponent = {
  name: 'MineFrameSetComponent',
  render(createElement, context) {
    return  createElement(BaseFrameSet, {class: 'mine'})
  }
}

export default {
  path: '/mine',
  name: 'Mine',
  component: MineFrameSetComponent,
  redirect: {name: 'MineIndex'},
  meta: { title: '我的' },
  children: [{
    path: 'mine_index',
    name: 'MineIndex',
    component: MineIndex,
    meta: { title: '信息' },
  }, {
    path: 'preview_user',
    name: 'PreviewUser',
    component: PreviewUser,
    meta: { title: '信息版面' },
  }, {
    path: 'change_info',
    name: 'ChangeInfo',
    component: ChangeInfo,
    meta: { title: '修改信息' },
  }, {
    path: 'change_password',
    name: 'ChangePassowrd',
    component: ChangePassowrd,
    meta: { title: '修改密码' },
  }, {
    path: 'mine_article',
    name: 'MineArticle',
    component: MineArticle,
    meta: { title: '我的文章' },
  }, {
    path: 'mine_system_message',
    name: 'MineSystemMessage',
    component: MineSystemMessage,
    meta: { title: '我的消息' },
  }, {
    path: 'mine_collection',
    name: 'MineCollection',
    component: MineCollection,
    meta: { title: '我的收藏' },
  }]
}